package com.jp.knowledge.comm;

import android.os.Bundle;

import com.github.anzewei.parallaxbacklayout.ParallaxBack;
import com.github.anzewei.parallaxbacklayout.ParallaxHelper;

/**
 * Created by jiayen on 16/9/26.
 * activity基础类
 */
@ParallaxBack
public abstract class SlidingActivity extends BaseActivity {

    @Override
    public void onBackPressed() {
        if(!ParallaxHelper.getParallaxBackLayout(this).scrollToFinishActivity(0))
            super.onBackPressed();
    }
}
